AWS - EC2 FundamentalsYou want to automate EC2 instance creation with SSH access using a key pair. Which approach ensures the private key remains secure?AShare the private key via email to all usersBStore the private key in the EC2 user data scriptCEmbed the private key in the AMI imageDGenerate the key pair outside AWS and import the public key onlyCheck Answer
Step-by-Step SolutionSolution:Step 1: Identify secure key management best practiceGenerating keys outside AWS and importing only the public key keeps private key secure.Step 2: Exclude insecure methodsStoring private key in user data, AMI, or emailing it exposes the key to risk.Final Answer:Generate the key pair outside AWS and import the public key only -> Option DQuick Check:Keep private key private, import only public key [OK]Quick Trick: Import public key, keep private key safe outside AWS [OK]Common Mistakes:Embedding private key in scripts or imagesSharing private key insecurely
Master "EC2 Fundamentals" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes AWS Account and Billing - Resource tagging for cost tracking - Quiz 13medium AWS CLI - Configuring credentials - Quiz 11easy AWS CLI - CLI output formats (json, table, text) - Quiz 8hard Cloud Computing Fundamentals - Edge locations and CloudFront overview - Quiz 9hard EC2 Fundamentals - Launching an EC2 instance - Quiz 2easy Identity and Access Management - Managed vs inline policies - Quiz 14medium S3 Fundamentals - S3 lifecycle rules - Quiz 10hard S3 Fundamentals - Static website hosting on S3 - Quiz 7medium S3 Fundamentals - Static website hosting on S3 - Quiz 12easy Security Groups and Network ACLs - Security groups vs NACLs decision - Quiz 4medium