Lambda in VPC, ENI cold start, Secrets Manager DB credentials, SQS event source mapping, Aurora writer endpoint UPSERT, DynamoDB vs relational for GSA
0:00 / ~24m0/15 answered
15 timed scenario questions (~24 min, ~96 sec each). Reinforces night-17-lambda-aurora.md and night-17-lab-lambda-stats-setup scripts. Answer without peeking at night-17-quiz-answers.json first.
1.night-17-lab deploys saa-study-gsa-stats-uploader in Night 9 private subnets with saa-study-gsa-lambda-stats-sg. Aurora saa-study-gsa-aurora-sg already allows TCP 5432 from lambda-stats-sg. What additional SG rule does the Lambda security group need for PostgreSQL writes?
2.The stats uploader runs INSERT … ON CONFLICT to increment monthly_runs in resort_stats. Which Aurora endpoint must DB_HOST point to?
3.First -TestInvoke after create-function takes 30+ seconds while later invokes finish in a few seconds. What is the most likely cause?
4.night-17-lab stores DB_SECRET_ARN in environment variables and calls secretsmanager:GetSecretValue at runtime. Why not put the master password directly in DB_PASSWORD?
5.Night 13 queue saa-study-gsa-iceland-completion has VisibilityTimeout=60. The Lambda timeout is 30 seconds. Is this pairing valid for the event source mapping?
6.An SQS message body contains the full ECS Task State Change JSON from Night 13 EventBridge. The handler has no resort_id field. What should the uploader do in this study lab?
7.Lambda in private subnets must reach Secrets Manager and CloudWatch Logs. Night 9 VPC uses a NAT Gateway in the public subnet. What happens if you remove the NAT route from the private subnet route table?
8.GSA wiki page views use DynamoDB UpdateItem ADD on a partition key. resort_stats monthly aggregates need SQL JOIN reports. Where should each workload live?
9.You add fifty concurrent Lambda pollers on the same completion queue without RDS Proxy. Aurora reports too many connections. What is the exam-best mitigation?
10.night-17-lab bundles pg8000 in the deployment package instead of using RDS Data API from Lambda. Why choose VPC TCP for this lab path?
11.After -TestInvoke succeeds, -VerifyRow uses aws rds-data execute-statement from your laptop. Why can the laptop query resort_stats while the uploader uses pg8000 over TCP?
12.night-17-lab-lambda-stats-teardown.ps1 deletes the function and IAM role but leaves Aurora and SQS. A teammate runs Night 16 teardown next. What breaks for Night 13 consumers?
13.The handler uses ON CONFLICT (resort_id) DO UPDATE to increment monthly_runs. Which property makes this safe when SQS delivers duplicate completion messages?
14.You need sub-second wiki view counter updates globally with no JOINs. Iceland batch completion runs once per month. Which storage and trigger pairing fits?
15.Create-function fails with EC2 502 when attaching VpcConfig immediately after creating the IAM role. What is the first fix to try?