Li Yen Tzeng

@LYTseng

Joined on Nov 15, 2019

  • By 嚴 NAS 掛載步驟 我們都在這裡分享檔案哦~ 累積了過往所有學長姐的業障 課本、考古題等等可以在這邊找找 首先請依照這篇文章設定,不然連不上 檔案總管 > 本機 > 連線網路磁碟機 > 資料夾輸入 \\140.124.182.184\netlab 帳:netlab 密:Netlab1423
     Like  Bookmark
  • 目前我實習的公司使用 Mattermost 作為內部通訊軟體,且 Mattermost 支援 Webhook 和 Slash Command。為了方便隨時隨地可以快速開啟/關閉 EC2,因此想寫一個下 Slash Command 指令的工具,直接呼叫 API 來控制和查看 EC2,免去登入 console 的麻煩,一定會方便許多。 我使用 Go 寫了一個程式處理 Mattermost 傳入的資料,並且透過 aws-sdk-go 對 EC2 進行操作。程式會在 Lambda 上執行,原始碼請參考我的 Github:https://github.com/LYTzeng/ec2ctl,日後考慮用 CloudFormation 讓需要的人快速佈署。這篇主要會介紹 API Gateway、Lambda 和部份 SDK 的使用。 先展示成果: API Gateway IAM Role 在建立一個 API 之前,我們先創一個 IAM Policy 並 Attach 到 Role。API Gateway 需要 Invoke Lambda 以及寫入 CLoudWatch 的權限。 進入 IAM 管理介面,首先 Create 一個 Policy 使其允許 Invoke Lambda,我們使用 JSON 來建立 Policy:
     Like  Bookmark
  • Six Advantages of Cloud Computing Trade capital expense for variable expense Moving from upfront capital expense (capex) to variable operational expense (opex). :::info https://aws.amazon.com/tco-calculator/?nc1=h_ls AWS helps you reduce Total Cost of Ownership(TCO) by reducing the need to invest in large capital expenditures (CAPEX) and providing a pay-as-you-go model that empowers you to invest in the capacity you need and use it only when the business requires it. :::
     Like  Bookmark
  • Which of the following services is in the category of AWS serverless platform? C. AWS Lambda :x: Which services are parts of the AWS serverless platform? B. Amazon Kinesis, Amazon SQS, Amazon EMR C. AWS Step Functions, Amazon DynamoDB, Amazon SNS :::info https://aws.amazon.com/serverless/
     Like  Bookmark
  • Which AWS managed service is used to host databases? D. Amazon RDS Which AWS service provides a simple and scalable shared file storage solution for use with Linux-based AWS and on-premises servers? D. Amazon EFS When architecting cloud applications, which of the following are a key design principle? D. Implement elasticity Which AWS service should be used for long-term, low-cost storage of data backups?
     Like  Bookmark
  • Which AWS Support plan provides a full set of AWS Trusted Advisor checks? D. Enterprise and Business Support Which of the following services have Distributed Denial of Service (DDoS) mitigation features? (Choose two.) A. AWS WAF D. Amazon CloudFront 🔺When building a cloud Total Cost of Ownership (TCO) model, which cost elements should be considered for workloads running on AWS? (Choose three.) A. Compute costs C. Storage costs
     Like  Bookmark
  • 對54/65 = Under the shared responsibility model, which of the following is the customer responsible for? C. Ensuring that data is encrypted at rest. The use of what AWS feature or service allows companies to track and categorize spending on a detailed level? A. Cost allocation tags Which service stores objects, provides real-time access to those objects, and offers versioning and lifecycle capabilities? C. Amazon S3
     Like  Bookmark
  • Services EBS Volume EBS volume is the storage for EC2 instances. The EBS volume should be created at the same AZ as the EC2 instance. We can scale up the volume or change the volume type without stopping the instance. We can attach a volume to a instance lsblk mke2fs mount /dev/xvda /mnt
     Like  Bookmark