Complete the code to enable encryption at rest for a DynamoDB table.
aws dynamodb create-table --table-name MyTable --attribute-definitions AttributeName=Id,AttributeType=S --key-schema AttributeName=Id,KeyType=HASH --billing-mode PAY_PER_REQUEST --[1]To enable encryption at rest in DynamoDB, you use the --sse-specification Enabled=true option when creating the table.
Complete the code to specify the encryption type used for encryption at rest in DynamoDB.
aws dynamodb create-table --table-name MyTable --attribute-definitions AttributeName=Id,AttributeType=S --key-schema AttributeName=Id,KeyType=HASH --billing-mode PAY_PER_REQUEST --sse-specification Enabled=true,[1]=AES256The correct parameter to specify the encryption type is SSEType. DynamoDB supports AES256 for encryption at rest.
Fix the error in the code to enable encryption in transit for DynamoDB using HTTPS endpoint.
const AWS = require('aws-sdk'); const dynamodb = new AWS.DynamoDB({endpoint: 'https://dynamodb.us-west-2.amazonaws.com', [1]: true});
To enable encryption in transit (SSL/TLS) in AWS SDK for JavaScript, the correct option is sslEnabled: true.
Fill both blanks to configure a DynamoDB client with encryption in transit and a custom HTTPS endpoint.
const AWS = require('aws-sdk'); const dynamodb = new AWS.DynamoDB({endpoint: '[1]', [2]: true});
The endpoint must use HTTPS for encryption in transit. The option to enable SSL is sslEnabled: true.
Fill the blanks to create a DynamoDB table with encryption at rest enabled using AWS KMS key and encryption in transit.
aws dynamodb create-table --table-name SecureTable --attribute-definitions AttributeName=UserId,AttributeType=S --key-schema AttributeName=UserId,KeyType=HASH --billing-mode PAY_PER_REQUEST --sse-specification Enabled=true,[1]=KMS --endpoint-url {{BLANK_3}}To specify AWS KMS for encryption at rest, use SSEType=KMS. To enable encryption in transit, use HTTPS endpoint.