1. 1. A data engineer is about to perform a major upgrade to the DDL contained within an Amazon Redshift cluster to support a new data warehouse application. The upgrade scripts will include user permission updates, view and table structure changes as well as additional loading and data manipulation tasks. The data engineer must be able to restore the database to its existing state in the event of issues. Which action should be taken prior to performing this upgrade task?
1. データエンジニアは、新しいデータウェアハウスアプリケーションをサポートするために、Amazon Redshift クラスター内のDDLに対して大規模なアップグレードを実行しようとしています。アップグレードスクリプトには、ユーザー権限の更新、ビューおよびテーブル構造の変更、さらに追加のロードおよびデータ操作タスクが含まれます。データエンジニアは、問題が発生した場合にデータベースを既存の状態に復元できる必要があります。このアップグレードタスクを実行する前にどのような対策を取るべきですか?
正确答案: B
Correct answer is B as a manual snapshot needs to be taken to be able to restore Redshift to the point before upgrade.,Refer AWS documentation – Redshift Snapshots,Snapshots are point-in-time backups of a cluster. There are two types of snapshots: automated and manual. Amazon Redshift stores these snapshots internally in Amazon S3 by using an encrypted Secure Sockets Layer (SSL) connection.,Amazon Redshift automatically takes incremental snapshots that track changes to the cluster since the previous automated snapshot. Automated snapshots retain all of the data required to restore a cluster from a snapshot. You can create a snapshot schedule to control when automated snapshots are taken, or you can take a manual snapshot any time.,When you restore from a snapshot, Amazon Redshift creates a new cluster and makes the new cluster available before all of the data is loaded, so you can begin querying the new cluster immediately. The cluster streams data on demand from the snapshot in response to active queries, then loads the remaining data in the background.,When you launch a cluster, you can set the retention period for automated and manual snapshots. You can change the retention period for automated and manual snapshots by modifying the cluster. You can change the retention period for a manual snapshot when you create the snapshot or by modifying the snapshot.,You can take a manual snapshot any time. By default, manual snapshots are retained indefinitely, even after you delete your cluster. You can specify the retention period when you create a manual snapshot, or you can change the retention period by modifying the snapshot. If you create a snapshot using the Amazon Redshift console, it defaults the snapshot retention period to 365 days.,If a snapshot is deleted, you can’t start any new operations that reference that snapshot. However, if a restore operation is in progress, that restore operation will run to completion.,Option A is wrong as it would only copy the data.,Option C is wrong as you cannot copy the automated snapshot. Also, automated snapshot are controlled by time and size and would not represent the data before upgrade.,Option D is wrong as waitForSnapshotAvailable needs to be called after triggering the manual snapshot creation and it can be verified from console as well.
正しい答え: B
正しい答えはBです。アップグレード前の状態にRedshiftを復元するためには、手動でスナップショットを撮る必要があります。
AWSのドキュメントを参照してください – Redshiftスナップショット
スナップショットはクラスタの時点バックアップです。スナップショットには2種類があります: 自動スナップショットと手動スナップショット。Amazon Redshiftは、これらのスナップショットをAmazon S3に内部的に保存し、暗号化されたSSL接続を使用します。
Amazon Redshiftは、自動スナップショットを増分で撮り、前回の自動スナップショット以降のクラスタの変更を追跡します。自動スナップショットは、スナップショットからクラスタを復元するために必要なすべてのデータを保持します。スナップショットのスケジュールを作成して自動スナップショットが撮影されるタイミングを制御することも、任意のタイミングで手動スナップショットを撮ることもできます。
スナップショットから復元すると、Amazon Redshiftは新しいクラスタを作成し、新しいクラスタをデータがすべてロードされる前に利用可能にしますので、新しいクラスタをすぐにクエリできます。クラスタは、アクティブなクエリに応じてスナップショットからデータをオンデマンドでストリーミングし、その後残りのデータをバックグラウンドでロードします。
クラスタを起動する際に、自動スナップショットおよび手動スナップショットの保持期間を設定できます。クラスタを変更することで、自動スナップショットおよび手動スナップショットの保持期間を変更できます。手動スナップショットの保持期間は、スナップショットを作成する際に設定するか、スナップショットを変更することで変更できます。
手動スナップショットはいつでも撮ることができます。デフォルトでは、手動スナップショットはクラスタを削除した後でも無期限に保持されます。手動スナップショットを作成する際に保持期間を指定するか、スナップショットを変更して保持期間を変更できます。Amazon Redshiftコンソールを使用してスナップショットを作成すると、スナップショットの保持期間は365日に設定されます。
スナップショットが削除された場合、そのスナップショットを参照する新しい操作は開始できません。ただし、復元操作が進行中の場合、その復元操作は完了するまで実行されます。
オプションAは誤りです。データをコピーするだけです。
オプションCは誤りです。自動スナップショットをコピーすることはできません。また、自動スナップショットは時間とサイズによって管理され、アップグレード前のデータを反映しません。
オプションDは誤りです。waitForSnapshotAvailableは手動スナップショット作成をトリガーした後に呼び出す必要があり、コンソールからも確認できます。
コメント0