Q: 11
A company wants to share information with a third party. The third party has an HTTP API endpoint
that the company can use to share the information. The company has the required API key to access
the HTTP API.
The company needs a way to manage the API key by using code. The integration of the API key with
the application code cannot affect application performance.
Which solution will meet these requirements MOST securely?
Options
Discussion
A is the best choice, Secrets Manager is built for secure secret storage and you can grab the API key at runtime with minimal perf impact. S3 or DynamoDB aren't meant for secrets. Pretty sure official guide and AWS labs cover this.
Be respectful. No spam.
Q: 12
A developer is working on a web application that uses Amazon DynamoDB as its data store The
application has two DynamoDB tables one table that is named artists and one table that is named
songs The artists table has artistName as the partition key. The songs table has songName as the
partition key and artistName as the sort key
The table usage patterns include the retrieval of multiple songs and artists in a single database
operation from the webpage. The developer needs a way to retrieve this information with minimal
network traffic and optimal application performance.
Which solution will meet these requirements'?
Options
Discussion
Its A, pretty sure. BatchGetItem lets you fetch from both tables in one call, so that cuts down network chattiness. The others either require extra queries or scans which isn't efficient. Bit confused if there's a smarter way but this matches what I've seen in practice exams. Anyone else get stuck on this?
Be respectful. No spam.
Q: 13
A developer needs to deploy an application running on AWS Fargate using Amazon ECS The
application has environment variables that must be passed to a container for the application to
initialize.
How should the environment variables be passed to the container?
Options
Discussion
C vs D? Not sure which one is right, kind of looks similar to me. Can someone confirm?
Be respectful. No spam.
Q: 14
A company has a website that is developed in PHP and is launched using AWS Elastic Beanstalk.
There is a new version of the website that needs to be deployed in the Elastic Beanstalk
environment. The company cannot tolerate having the website offline if an update fails.
Deployments must have minimal impact and rollback as soon as possible.
Options
Discussion
D imo, matches what I've seen in similar practice sets. Question is really clear about rollback needs.
Be respectful. No spam.
Q: 15
A company has a serverless application that uses an Amazon API Gateway API to invoke an AWS
Lambda function. A developer creates a fix for a defect in the Lambda function code. The developer
wants to deploy this fix to the production environment. To test the changes, the developer needs to
send 10% of the live production traffic to the updated Lambda function version.
Options:
Options
Discussion
C or B. Aliases let you control weights but I thought you could also do weighted routing in API Gateway stages, so B might work depending on setup. Not 100% though, anyone see API Gateway use that way?
Option A and C make sense here. You need to publish a new version first (A), then set up weighted routing using an alias (C) to send 10% of traffic to the updated code. Pretty sure that's the needed combo, unless I missed something.
Be respectful. No spam.
Q: 16
A developer is creating an AWS Serverless Application Model (AWS SAM) template. The AWS SAM
template contains the definition of multiple AWS Lambda functions, an Amazon S3 bucket, and an
Amazon CtoudFront distribution. One of the Lambda functions runs on Lambda@Edge in the
CloudFront distribution. The S3 bucket is configured as an origin for the CloudFront distribution.
When the developer deploys the AWS SAM template in the eu-west-1 Region, the creation of the
stack fails.
Which of the following could be the reason for this issue?
Options
Discussion
Makes sense to go with B. Lambda@Edge requires the function to be created in us-east-1, no matter where the CloudFront or other resources are. Pretty sure that’s what causes the stack failure here. Agree?
B imo. Lambda@Edge deploys have to be in us-east-1 even if your stack is in another region. Seen this issue mentioned before.
Be respectful. No spam.
Q: 17
A developer is writing an AWS Lambda function. The developer wants to log key events that occur
while the Lambda function runs. The developer wants to include a unique identifier to associate the
events with a specific function invocation. The developer adds the following code to the Lambda
function:
Which solution will meet this requirement?
Which solution will meet this requirement?Options
Discussion
B, not C. Had something like this in a mock and it's definitely A for Lambda logging context.
Be respectful. No spam.
Q: 18
A developer is building an application that uses an AWS Lambda function to process dat
a. The application requires minimum latency. The Lambda function must have predictable function
start times. All setup activities for the execution environment must happen before invocation of the
Lambda function.
Which solution will meet these requirements?
Options
Discussion
D imo. Provisioned concurrency is made for this, since it keeps Lambda environments pre-warmed so you avoid unpredictable cold start delays. Pretty sure that's the only way to guarantee setup happens before invocation-saw this asked in some exam reports too.
Be respectful. No spam.
Q: 19
A developer needs to use Amazon DynamoDB to store customer orders. The developer's company
requires all customer data to be encrypted at rest with a key that the company generates.
What should the developer do to meet these requirements?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 20
A company uses an AWS Lambda function to transfer files from an Amazon S3 bucket to the
company's SFTP server. The Lambda function connects to the SFTP server by using credentials such as
username and password. The company uses Lambda environment variables to store these
credentials.
A developer needs to implement encrypted username and password credentials.
Which solution will meet these requirements?
Options
Discussion
D imo, storing creds in an encrypted .txt on S3 should work since S3 can encrypt files and you can control access. I don't see why you'd need Parameter Store here. Anyone else thinks D could fit?
Be respectful. No spam.
Question 11 of 20 · Page 2 / 2