0
0
Fluttermobile~20 mins

CI/CD for Flutter - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Flutter CI/CD Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Flutter build command output
What is the output of the following Flutter build command when run successfully for an Android app?
flutter build apk --release
Flutter
flutter build apk --release
AError: No connected devices found.
BBuilt build/app/outputs/flutter-apk/app-release.apk (12.3MB).
CWarning: Deprecated flag used.
DBuild failed due to missing dependencies.
Attempts:
2 left
💡 Hint
Think about what a successful build message looks like.
🔀 Workflow
intermediate
2:00remaining
Correct order of CI steps for Flutter app
Arrange the following steps in the correct order for a typical CI pipeline for a Flutter app:
A1,2,3,4
B2,1,3,4
C1,3,2,4
D3,1,2,4
Attempts:
2 left
💡 Hint
Think about quality checks before building and deploying.
Troubleshoot
advanced
2:00remaining
Diagnosing Flutter build failure in CI
A CI pipeline running 'flutter build ios' fails with the error:
error: CocoaPods not installed or not configured correctly

Which option correctly fixes this issue in the CI environment?
ARun 'flutter clean' before the build step
BRemove the Podfile from the iOS project
CIncrease the CI machine's memory
DAdd a step to install CocoaPods using 'sudo gem install cocoapods' before building
Attempts:
2 left
💡 Hint
CocoaPods is a dependency manager for iOS projects.
Best Practice
advanced
2:00remaining
Best practice for caching in Flutter CI pipelines
Which caching strategy is best to speed up Flutter CI builds without causing stale dependencies?
ACache the entire Flutter SDK and the .pub-cache directory
BCache only the build output directory
CDo not use caching to avoid any stale files
DCache only the source code directory
Attempts:
2 left
💡 Hint
Think about what takes time to download and install repeatedly.
🧠 Conceptual
expert
2:00remaining
Understanding Flutter CI/CD pipeline triggers
In a Flutter CI/CD pipeline, which trigger setup ensures that the pipeline runs only when code affecting the app's UI or logic changes?
ATrigger pipeline only on changes to 'docs/' directory
BTrigger pipeline on any commit to the repository
CTrigger pipeline on changes to 'lib/' and 'test/' directories only
DTrigger pipeline on changes to 'android/' and 'ios/' directories only
Attempts:
2 left
💡 Hint
UI and logic code is usually inside 'lib/' and tests in 'test/'.